package com.tust.app.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.tust.app.domain.TUser;
import com.tust.app.dao.TUserMapper;
import com.tust.app.service.TUserService;
@Service
public class TUserServiceImpl implements TUserService{

    @Resource
    private TUserMapper tUserMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TUser record) {
        return tUserMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TUser record) {
        return tUserMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TUser record) {
        return tUserMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TUser record) {
        return tUserMapper.insertSelective(record);
    }

    @Override
    public TUser selectByPrimaryKey(Integer id) {
        return tUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TUser> selectAll() {
        return tUserMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKeySelective(TUser record) {
        return tUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TUser record) {
        return tUserMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TUser> list) {
        return tUserMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TUser> list) {
        return tUserMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TUser> list) {
        return tUserMapper.batchInsert(list);
    }

    @Override
    public List<TUser> selectByUsername(String username) {
        return tUserMapper.selectByUsername(username);
    }


    @Override
    public List<TUser> tuserList() {
        return tUserMapper.selectAll();
    }

    @Override
    public TUser checkreg(String username) {
        return tUserMapper.checkreg(username);
    }




}
